package com.tl.boot.entity.permission.form;

import com.tl.boot.common.enums.ResultEnum;
import com.tl.boot.common.exception.BaseException;
import com.tl.boot.entity.demo.form.Base.BaseForm;
import io.swagger.annotations.ApiModelProperty;

/**
 * com.tl.boot.entity.permission.form -- DelResourceInfoForm
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/19 15:09
 */
public class DelResourceInfoForm extends BaseForm {
    @ApiModelProperty(value = "资源id",name = "resId",example = "1",required = true)
    private Long resId;

    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Override
    public void checkParam() {
        if (this.resId == null) {
            throw new BaseException(ResultEnum.REQUEST_PARAM_ILLEGAL);
        }
    }
}
